package com.example.barcodeapp.persenter.own;

import com.example.barcodeapp.base.BasePersenter;
import com.example.barcodeapp.common.CommonSubscriber;
import com.example.barcodeapp.interfaces.own.IOwn;
import com.example.barcodeapp.model.HttpManager;
import com.example.barcodeapp.ui.wode.bean.JiFenListBean;
import com.example.barcodeapp.utils.RxUtils;

public class WoDeJiFenListPresenter extends BasePersenter<IOwn.JiFenListView> implements IOwn.JiFenListPresenter {

    @Override
    public void getJiFenList(int uid,int page,String type) {
        addSubscribe(HttpManager.getInstance().getOwnTpApi().getJiFenList(uid,page,type)
                .compose(RxUtils.rxScheduler())
                .subscribeWith(new CommonSubscriber<JiFenListBean>(mView) {
                    @Override
                    public void onNext(JiFenListBean jiFenListBean) {
                        mView.getJiFenListBean(jiFenListBean);
                    }
                }));
    }
}
